package com.mingdong.first.mingling.commond;

import com.mingdong.first.mingling.device.Light;

public class LightOnCommond implements Commond {

	Light light;
	
	public LightOnCommond(Light light){
		
		this.light =light;
	}
	
	public void execute() {
		
		light.on();
	}

	public void undo() {
		light.off();
	}

}
